home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / targs / targs.txt < prev   
Encoding:
Text File  |  1991-02-19  |  1.4 KB  |  29 lines

  1. Targs serves as a foundation for building interactive programs. It interprets 
  2. the user's input, evaluates expressions, and executes the desired subroutines. 
  3. The program, argtest, demonstrates both the capabilities and the implementation
  4. of targs.
  5.  
  6. The other directory contains 2 programs: argtest and parse. To make them type
  7. either "make argtest" or "make parse". The parser is implemented in the argtest
  8. program under the "Plot" command.
  9.  
  10. The main purpose of argtest is to show off "targs" and how it is a replacement 
  11. for "aargs". Check out argtest.c to see how to use it in your own programs. 
  12.  
  13. The parser program shows how one can use "expr_tof" to convert mathematical
  14. expressions to a double number. It is passed a string containing functions
  15.  and variables 'a' through 'z' . These variables are assigned by either passing 
  16. it a string like "a=cos(3.222)" or by changing regs['a'-'a'] when you include
  17. a "extern double regs[26]" in your program. When the parser is passed multiple
  18. expressions it returns the value of the last one. For example, when it is passed
  19. "a=2+3; a*a", it will return a double valued at "25.000".
  20.  
  21. Further documentation
  22.  
  23. exprtof.doc        summary of commands that work in expr_tof.
  24. article.doc        newsletter article.
  25. usingtargs.doc        how to implement ones own procedures.
  26.  
  27. Please send any suggestions or report any bugs to todd@poincare.geom.umn.edu
  28.  
  29. This package was written by Todd R. Kaplan and Rob Almgren.